import request from '@/utils/request.js'

// 获取企业列表信息接口
export const enterpriseList = (params) => {
  return request({
    url: '/enterprise/list',
    params
  })
}

// 企业添加接口
export const enterpriseAdd = (data) => {
  return request({
    url: '/enterprise/add',
    method: 'post',
    data
  })
}

// 企业删除
export const enterpriseRemove = (id) => {
  return request({
    url: '/enterprise/remove/' + id,
    method: 'post'
  })
}

// 企业编辑
export const enterpriseEdit = (data) => {
  return request({
    url: '/enterprise/edit',
    method: 'post',
    data
  })
}
